package com.ford.trade.bigCompany;

import com.ford.trade.entity.PeiLv2;
import com.ford.trade.repository.Peilv2Repository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author: ford
 * @date: 2022/4/25 12:03
 */
@Service
public class Peilv2ServiceImpl implements Peilv2Service {
    @Resource
    private Peilv2Repository peilv2Repository;

    @Override
    public void save(PeiLv2 peiLv) {
        peilv2Repository.save(peiLv);
    }

    @Override
    public List<PeiLv2> findByIndexId(Long indexId) {

        return peilv2Repository.findAllByIndexId(indexId);
    }
}
